from pydantic import BaseModel

class LoginRequest(BaseModel):
    user: str
    password: str

class CreateUserRequest(BaseModel):
    name: str
    user: str
    password: str
    role: str
    from_place: str

class UpDataUserRequest(BaseModel):
     name: str
     role: str
     level: int
     from_place: str
     active: bool

class CreateCourseRequest(BaseModel):
    week_day: int
    time: int
    name: str
    teacher: str
    place: str

class UpdateCourseRequest(BaseModel):
    id: int
    week_day: int
    time: int
    name: str
    teacher: str
    place: str

class CreateCorpusRequest(BaseModel):
    question: str
    answer: str
    status: bool
    from_model: str
    from_class: str

class UpdateCorpusRequest(BaseModel):
    id: int
    question: str
    answer: str
    status: bool
    from_model: str
    from_class: str